package com.shanxin.boom.mall.web.util;

import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ApiMappingUtil {

    private static Logger logger = LoggerFactory.getLogger(ApiMappingUtil.class);

    private static Properties properties;

    public static String getMappingUrl(String key) {
        try {
            String msg = properties.getProperty(key);

            return msg;
        } catch (Exception e) {
            return null;
        }
    }

    public void setPropertiesFactory(Properties prop) {
        try {
            properties = prop;
        } catch (Exception e) {
            logger.info("Init PropertiesUtil fail : ", e);
        }
    }
}
